package com.job.Gai_Yian.Homework0716;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-16 15:31:08
 */
public class UseData {
    public static void main(String[] args) {
        Date now=new Date() ;
        System.out.println(now);

        Date date=new Date(1000L*60*60*24*31);
        System.out.println(date);

        Date dd=new Date(Integer.MAX_VALUE*1L);
        System.out.println(dd);

        boolean after=now.after(date);
        System.out.println(after);

        long time=now.getTime();
        System.out.println(time/1000);
    }
}
